package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.dto.FirstInspDTO;
import com.woniuxy.mesboot.entity.MesFirstArticleInspection;
import com.woniuxy.mesboot.mapper.MesFirstArticleInspectionMapper;
import com.woniuxy.mesboot.service.FirstArticleInspectionService;
import com.woniuxy.mesboot.vo.FirstInspVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class FirstArticleInspectionServiceImpl implements FirstArticleInspectionService {
    @Resource
    private MesFirstArticleInspectionMapper firstArticleInspectionMapper;
    @Override
    public List<FirstInspVO> selectAll(FirstInspDTO inspDTO) {
        return firstArticleInspectionMapper.selectAll(inspDTO);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return firstArticleInspectionMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesFirstArticleInspection record) {

        return firstArticleInspectionMapper.insert(record);
    }

    @Override
    public int insertSelective(MesFirstArticleInspection record) {
        return
                firstArticleInspectionMapper.insertSelective(record);
    }

    @Override
    public MesFirstArticleInspection selectByPrimaryKey(Long id) {
        return firstArticleInspectionMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesFirstArticleInspection record) {
        return firstArticleInspectionMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesFirstArticleInspection record) {
        return firstArticleInspectionMapper.updateByPrimaryKey(record);
    }
}
